<template>
	<view class="contain">
		<view class="" v-if="good.length">
			<uni-list >
				<uni-list-item  title="订单号" note="1234124" rightText="2023-10-5" clickable @click="tiao1" ></uni-list-item>
				<uni-list-item title="订单类型" note="12(⊙o⊙)…1" rightText="2023-10-5"  clickable @click="tiao1"></uni-list-item>
			</uni-list>
			<button style="margin-top: 30px;" @click="tiao1">点击</button>
		</view>
		<view class="" style="display: flex;justify-content: center;font-size: 32px;" v-else>
			你的账号暂无订单
		</view>
		
	</view>
</template>

<script>
	import {getgoods} from "@/utils/goods/index.js"
	export default {
		data() {
			return {
				good:[]
			}
		},
		onLoad() {
		this.getgood()	
		},
		methods: {
			async getgood(){
				const res=await getgoods()
				console.log(res)
				this.good=res.data.rows
			},
			tiao1(){
				uni.navigateTo({
					url:"/pages/infogoodslist/infogoodslist"
				})
			}
		}
	}
</script>

<style>

</style>
